package cn.golxen.blog.mapper;

import cn.golxen.blog.entity.EssayLabel;
import cn.golxen.blog.entity.Label;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface EssayLabelMapper {
    Integer addList(@Param(value = "labelList") List<String> labelList,String essayId);

    Integer delete(List<String> essayIdList);

    Set<String> getLabelByEssayId(String essayId);

    Integer update(@Param(value = "labelList") List<String> labelList,String essayId);

    Integer getCountByLabel(String label);

}
